package com.coderush.admin.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.coderush.admin.sys.model.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coderush.admin.sys.model.vo.RolePageVo;

/**
* @author Administrator
* @description 针对表【sys_role(角色)】的数据库操作Mapper
* @createDate 2025-08-27 22:20:16
* @Entity com.coderush.admin.sys.model.entity.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据公司id和角色名称查询角色
     * @param roleName
     */
    Role getByRoleName(String roleName);

    Role getByRoleCode(String roleCode);

    Page<Role> findRolePage(Page<Role> page, String roleName);
}




